import Localstoreage from 'store'
const TokenKey = 'AdminToken'

export function getToken() {
  return Localstoreage.get(TokenKey)
}

export function setToken(token) {
  return Localstoreage.set(TokenKey, token)
}

export function removeToken() {
  return Localstoreage.remove(TokenKey)
}

// 通用存
export function setLocalValue(name, value) {
  return Localstoreage.set(name, value)
}

// 通用取
export function getLocalValue(name) {
  return Localstoreage.get(name)
}
// 通用删
export function removeLocalValue(name) {
  return Localstoreage.remove(name)
}
